<template>
  <div class="mod-menu">
    <el-table :data="dataList" row-key="Id" border style="width: 100%">
      <el-table-column prop="name" align="center" label="操作人员">
      </el-table-column>
      <el-table-column prop="remark" align="center" label="操作记录">
      </el-table-column>
      <el-table-column prop="create_time" align="center" label="操作时间">
      </el-table-column>
    </el-table>
    <el-pagination
      @size-change="sizeChange"
      @current-change="currentChange"
      :page-size="pamars.limit"
      :page-sizes="[10, 20, 50, 100]"
      :current-page="pamars.page"
      :total="totalPage"
      layout="total, sizes, prev, pager, next, jumper"
    ></el-pagination>
  </div>
</template>

<script>
import seviceApi from '@/api/serviceApi.js'
export default {
  data () {
    return {
      pamars: {
        page: 1,
        limit: 10
      },
      totalPage: 0,
      dataList: []
    }
  },
  mounted () {
    this.getlist()
  },
  methods: {
    getlist () {
      seviceApi.getSensitivelogList(this.pamars).then((res) => {
        if (res && res.data.code == 200) {
          this.dataList = res.data.page.list
          this.totalPage = res.data.page.totalCount
        }
      })
    },
    // 每页数
    sizeChange (val) {
      this.pamars.limit = val
      this.getlist()
    },
    // 当前页
    currentChange (val) {
      this.pamars.page = val
      this.getlist()
    }
  }
}
</script>

<style>
</style>
